import fiftyone as fo
from ultralytics import YOLO

ckpt_path = "yolov8l.pt"
model = YOLO(ckpt_path)



# Create a dataset from a glob pattern of images
dataset = fo.Dataset.from_images_patt("E:/VOCdevkit/VOC2012/JPEGImages/*.jpg")
dataset.take(size=100)
dataset.apply_model(model, label_field="base_model")
session = fo.launch_app(dataset, port=8080)
session.wait()